{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}/Users/shelley/Dropbox/Projects/Senegal/Senegal Nigeria Education and Leaders/Senegal Replication Files/do files/0_main tables.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res} 6 Jul 2023, 11:56:40
{txt}
{com}.         do "do files/main regressions" /* main paper */
{txt}
{com}. 
. *********************************
. ***   Economic and Interest   ***
. *********************************
. 
. est clear
{txt}
{com}. local economic economic_index employed assets basic_necessities 
{txt}
{com}. 
. foreach var of varlist `economic' {c -(}
{txt}  2{com}.         display " "
{txt}  3{com}.         display " "
{txt}  4{com}.         display " "
{txt}  5{com}.         display "Table 1a: `var'"
{txt}  6{com}.         quietly eststo: areg `var' instrument $controls if birthyear_control >= 1970 & birthyear_control <= 1997, absorb(locale_gender) cluster(locale_3_control)
{txt}  7{com}.         noisily: lincom instrument
{txt}  8{com}.         quietly: summ `var'
{txt}  9{com}.         estadd scalar vmean = r(mean)
{txt} 10{com}. 
. {c )-}
 
 
 
Table 1a: economic_index

{p 0 7}{space 1}{text:( 1)}{space 1} {res}instrument = 0{p_end}

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}economic_i~x{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}(1) {c |}{col 14}{res}{space 2} .0943155{col 26}{space 2} .0194546{col 37}{space 1}    4.85{col 46}{space 3}0.000{col 54}{space 4} .0560033{col 67}{space 3} .1326278
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

added scalar:
              e(vmean) =  {res}.3699303
 
 
 
Table 1a: employed

{p 0 7}{space 1}{text:( 1)}{space 1} instrument = 0{p_end}

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}    employed{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}(1) {c |}{col 14}{res}{space 2} .1607943{col 26}{space 2} .0368196{col 37}{space 1}    4.37{col 46}{space 3}0.000{col 54}{space 4}  .088285{col 67}{space 3} .2333036
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

added scalar:
              e(vmean) =  {res}.26280095
 
 
 
Table 1a: assets

{p 0 7}{space 1}{text:( 1)}{space 1} instrument = 0{p_end}

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}      assets{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}(1) {c |}{col 14}{res}{space 2} .1018375{col 26}{space 2} .0290709{col 37}{space 1}    3.50{col 46}{space 3}0.001{col 54}{space 4} .0445813{col 67}{space 3} .1590937
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

added scalar:
              e(vmean) =  {res}.40868629
 
 
 
Table 1a: basic_necessities

{p 0 7}{space 1}{text:( 1)}{space 1} instrument = 0{p_end}

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}basic_nece~s{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}(1) {c |}{col 14}{res}{space 2} .0197106{col 26}{space 2}  .018636{col 37}{space 1}    1.06{col 46}{space 3}0.291{col 54}{space 4}-.0169894{col 67}{space 3} .0564107
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

added scalar:
              e(vmean) =  {res}.45025788
{txt}
{com}. 
. 
. local information information interest_pub_affairs_index discuss_pol_index news_scale
{txt}
{com}. 
. foreach var of varlist `information' {c -(}
{txt}  2{com}.         display " "
{txt}  3{com}.         display " "
{txt}  4{com}.         display " "
{txt}  5{com}.         display "Table 1b: `var'"
{txt}  6{com}.         quietly eststo: areg `var' instrument $controls if birthyear_control >= 1970 & birthyear_control <= 1997, absorb(locale_gender) cluster(locale_3_control)
{txt}  7{com}.         
.         noisily: lincom instrument
{txt}  8{com}.         quietly: summ `var'
{txt}  9{com}.         estadd scalar vmean = r(mean)
{txt} 10{com}.         
. {c )-}
 
 
 
Table 1b: information

{p 0 7}{space 1}{text:( 1)}{space 1} {res}instrument = 0{p_end}

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1} information{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}(1) {c |}{col 14}{res}{space 2} .1260111{col 26}{space 2} .0453661{col 37}{space 1}    2.78{col 46}{space 3}0.006{col 54}{space 4} .0366711{col 67}{space 3} .2153511
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

added scalar:
              e(vmean) =  {res}1.5709462
 
 
 
Table 1b: interest_pub_affairs_index

{p 0 7}{space 1}{text:( 1)}{space 1} instrument = 0{p_end}

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}interest_p~x{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}(1) {c |}{col 14}{res}{space 2} .1426911{col 26}{space 2} .0691078{col 37}{space 1}    2.06{col 46}{space 3}0.040{col 54}{space 4} .0065964{col 67}{space 3} .2787859
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

added scalar:
              e(vmean) =  {res}1.0970478
 
 
 
Table 1b: discuss_pol_index

{p 0 7}{space 1}{text:( 1)}{space 1} instrument = 0{p_end}

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}discuss_po~x{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}(1) {c |}{col 14}{res}{space 2}  .119545{col 26}{space 2} .0464617{col 37}{space 1}    2.57{col 46}{space 3}0.011{col 54}{space 4} .0280474{col 67}{space 3} .2110426
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

added scalar:
              e(vmean) =  {res}1.1185751
 
 
 
Table 1b: news_scale

{p 0 7}{space 1}{text:( 1)}{space 1} instrument = 0{p_end}

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}  news_scale{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}(1) {c |}{col 14}{res}{space 2} .1141944{col 26}{space 2} .0887419{col 37}{space 1}    1.29{col 46}{space 3}0.199{col 54}{space 4} -.060566{col 67}{space 3} .2889549
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

added scalar:
              e(vmean) =  {res}2.4879451
{txt}
{com}. 
. 
. local numbers "& (1) & (2) & (3) & (4) \\"
{txt}
{com}. local economic "\textbf{c -(}A: Economic{c )-} & \multicolumn{c -(}1{c )-}{c -(}c{c )-}{c -(}Economic index{c )-} &  \multicolumn{c -(}1{c )-}{c -(}c{c )-}{c -(}Employed{c )-}  &  \multicolumn{c -(}1{c )-}{c -(}c{c )-}{c -(}Assets index{c )-}  &  \multicolumn{c -(}1{c )-}{c -(}c{c )-}{c -(}Basic necessities index{c )-} \\  \midrule"
{txt}
{com}. local interest "\midrule \\ \textbf{c -(}B: Interest{c )-} & \multicolumn{c -(}1{c )-}{c -(}c{c )-}{c -(}Interest index{c )-} &  \multicolumn{c -(}1{c )-}{c -(}c{c )-}{c -(}Interest in pub affairs{c )-}  &  \multicolumn{c -(}1{c )-}{c -(}c{c )-}{c -(}Discuss politics{c )-}  &  \multicolumn{c -(}1{c )-}{c -(}c{c )-}{c -(}News index{c )-} \\  \midrule"
{txt}
{com}. local gap ""
{txt}
{com}. 
. esttab est1 est2 est3 est4 using "tables/econ_interest.tex", replace b(3) se(3) ar(3) ///
> stats(N vmean, fmt(0 3 3 "") labels(`"Observations"' `"DV Mean"')) nonumber posthead("`numbers'" "`economic'") ///
> f label nomtitles nogaps booktabs noobs compress star(* 0.10 ** 0.05 *** 0.01) keep(instrument)
{res}{txt}(output written to {browse  `"tables/econ_interest.tex"'})

{com}. 
. esttab est5 est6 est7 est8 using "tables/econ_interest.tex", b(3) se(3) ar(3) ///
> stats(N vmean, fmt(0 3 3 "") labels(`"Observations"' `"DV Mean"')) ///
> nonumber posthead("`gap'" "`interest'") append ///
> f label nomtitles nogaps booktabs noobs compress star(* 0.10 ** 0.05 *** 0.01) keep(instrument)
{res}{txt}(output written to {browse  `"tables/econ_interest.tex"'})

{com}. 
. 
. 
. 
. 
. *************************
. ***   Participation   ***
. *************************
. 
. local participation participation_index participate_index contact_index 
{txt}
{com}. 
. est clear
{res}{txt}
{com}. 
. foreach var of varlist `participation' {c -(}
{txt}  2{com}.         display " "
{txt}  3{com}.         display " "
{txt}  4{com}.         display " "
{txt}  5{com}.         display "Table 2a: `var'"
{txt}  6{com}.         quietly eststo: areg `var' instrument $controls if birthyear_control >= 1970 & birthyear_control <= 1997, absorb(locale_gender) cluster(locale_3_control)
{txt}  7{com}.         
.         noisily: lincom instrument 
{txt}  8{com}.         quietly: summ `var'
{txt}  9{com}.         estadd scalar vmean = r(mean)
{txt} 10{com}.         
. {c )-}
 
 
 
Table 2a: participation_index

{p 0 7}{space 1}{text:( 1)}{space 1} {res}instrument = 0{p_end}

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}part~n_index{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}(1) {c |}{col 14}{res}{space 2}-.0102898{col 26}{space 2} .0472961{col 37}{space 1}   -0.22{col 46}{space 3}0.828{col 54}{space 4}-.1034306{col 67}{space 3} .0828509
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

added scalar:
              e(vmean) =  {res}.78137618
 
 
 
Table 2a: participate_index

{p 0 7}{space 1}{text:( 1)}{space 1} instrument = 0{p_end}

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}part~e_index{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}(1) {c |}{col 14}{res}{space 2}-.0426988{col 26}{space 2} .0632666{col 37}{space 1}   -0.67{col 46}{space 3}0.500{col 54}{space 4}-.1672903{col 67}{space 3} .0818927
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

added scalar:
              e(vmean) =  {res}1.296854
 
 
 
Table 2a: contact_index

{p 0 7}{space 1}{text:( 1)}{space 1} instrument = 0{p_end}

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}contact_in~x{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}(1) {c |}{col 14}{res}{space 2}  .023327{col 26}{space 2} .0448671{col 37}{space 1}    0.52{col 46}{space 3}0.604{col 54}{space 4}-.0650303{col 67}{space 3} .1116843
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

added scalar:
              e(vmean) =  {res}.26291357
{txt}
{com}. 
. foreach var of varlist `participation' {c -(}
{txt}  2{com}.         quietly eststo: reg `var' instrument c.instrument#c.W i.birthyear_control##c.W i.locale_gender##c.W c.post1##c.W c.treat2_10_inc##c.W $controls2 if birthyear_control >= 1970 & birthyear_control <= 1997, cluster(locale_3_control)
{txt}  3{com}.                 
.                 display " "
{txt}  4{com}.                 display " "
{txt}  5{com}.                 display " "
{txt}  6{com}.                 display "Table 2b: `var'"
{txt}  7{com}.                 noisily: lincom instrument
{txt}  8{com}.                 noisily: lincom c.instrument#c.W
{txt}  9{com}.                 quietly: summ `var' if e(sample)
{txt} 10{com}.                 estadd scalar vmean = r(mean)
{txt} 11{com}. {c )-}       
 
 
 
Table 2b: participation_index

{p 0 7}{space 1}{text:( 1)}{space 1} {res}instrument = 0{p_end}

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}part~n_index{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}(1) {c |}{col 14}{res}{space 2}-.0169548{col 26}{space 2} .0535058{col 37}{space 1}   -0.32{col 46}{space 3}0.752{col 54}{space 4}-.1223244{col 67}{space 3} .0884147
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{p 0 7}{space 1}{text:( 1)}{space 1} {res}c.instrument#c.W = 0{p_end}

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}part~n_index{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}(1) {c |}{col 14}{res}{space 2} .1625455{col 26}{space 2} .0939853{col 37}{space 1}    1.73{col 46}{space 3}0.085{col 54}{space 4}-.0225408{col 67}{space 3} .3476318
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

added scalar:
              e(vmean) =  {res}.72067464
 
 
 
Table 2b: participate_index

{p 0 7}{space 1}{text:( 1)}{space 1} instrument = 0{p_end}

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}part~e_index{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}(1) {c |}{col 14}{res}{space 2}-.0584728{col 26}{space 2} .0725918{col 37}{space 1}   -0.81{col 46}{space 3}0.421{col 54}{space 4}-.2014286{col 67}{space 3} .0844831
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{p 0 7}{space 1}{text:( 1)}{space 1} {res}c.instrument#c.W = 0{p_end}

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}part~e_index{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}(1) {c |}{col 14}{res}{space 2} .2849296{col 26}{space 2} .1403163{col 37}{space 1}    2.03{col 46}{space 3}0.043{col 54}{space 4} .0086032{col 67}{space 3}  .561256
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

added scalar:
              e(vmean) =  {res}1.2414227
 
 
 
Table 2b: contact_index

{p 0 7}{space 1}{text:( 1)}{space 1} instrument = 0{p_end}

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}contact_in~x{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}(1) {c |}{col 14}{res}{space 2} .0243334{col 26}{space 2} .0522695{col 37}{space 1}    0.47{col 46}{space 3}0.642{col 54}{space 4}-.0786014{col 67}{space 3} .1272683
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{p 0 7}{space 1}{text:( 1)}{space 1} {res}c.instrument#c.W = 0{p_end}

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}contact_in~x{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}(1) {c |}{col 14}{res}{space 2} .0375138{col 26}{space 2} .1009621{col 37}{space 1}    0.37{col 46}{space 3}0.711{col 54}{space 4} -.161312{col 67}{space 3} .2363396
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

added scalar:
              e(vmean) =  {res}.19651506
{txt}
{com}. 
. local numbers "& (1) & (2) & (3) \\"
{txt}
{com}. local participation1 "\textbf{c -(}A: Main Effects{c )-} & \multicolumn{c -(}1{c )-}{c -(}c{c )-}{c -(}Participation index{c )-} &  \multicolumn{c -(}1{c )-}{c -(}c{c )-}{c -(}Participate index{c )-} &  \multicolumn{c -(}1{c )-}{c -(}c{c )-}{c -(}Contact index{c )-} \\  \midrule"
{txt}
{com}. local participation2 "\midrule \\ \textbf{c -(}B: Democracy Threatened{c )-} & \multicolumn{c -(}1{c )-}{c -(}c{c )-}{c -(}Participation index{c )-} &  \multicolumn{c -(}1{c )-}{c -(}c{c )-}{c -(}Participate index{c )-}&  \multicolumn{c -(}1{c )-}{c -(}c{c )-}{c -(}Contact index{c )-} \\  \midrule"
{txt}
{com}. local gap ""
{txt}
{com}. 
. esttab est1 est2 est3 using "tables/participation.tex", replace b(3) se(3) ar(3) ///
> stats(N vmean, fmt(0 3 3 "") labels(`"Observations"' `"DV Mean"')) nonumber posthead("`numbers'" "`participation1'") ///
> f label nomtitles nogaps booktabs noobs compress star(* 0.10 ** 0.05 *** 0.01) keep(instrument)
{res}{txt}(output written to {browse  `"tables/participation.tex"'})

{com}. 
. esttab est4 est5 est6 using "tables/participation.tex", b(3) se(3) ar(3) ///
> stats(N vmean, fmt(0 3 3 "") labels(`"Observations"' `"DV Mean"')) ///
> nonumber posthead("`gap'" "`participation2'") append ///
> f label nomtitles nogaps booktabs noobs compress star(* 0.10 ** 0.05 *** 0.01) keep(instrument c.instrument#c.W)
{res}{txt}(output written to {browse  `"tables/participation.tex"'})

{com}. 
. 
. 
. 
. ************************************
. ***   Government and Democracy   ***
. ************************************
. 
. 
. local democracy dem_gov dem_support dem_checks_on_pres dem_institutions
{txt}
{com}. est clear
{res}{txt}
{com}. 
. 
. foreach var of varlist `democracy' {c -(}
{txt}  2{com}.         quietly eststo: areg `var' instrument $controls if birthyear_control >= 1970 & birthyear_control <= 1997, absorb(locale_gender) cluster(locale_3_control)
{txt}  3{com}.         
.         display " "
{txt}  4{com}.         display " "
{txt}  5{com}.         display " "
{txt}  6{com}.         display "Table 2b: `var'"
{txt}  7{com}.         noisily: lincom instrument 
{txt}  8{com}.         quietly: summ `var'
{txt}  9{com}.         estadd scalar vmean = r(mean)
{txt} 10{com}.         
. {c )-}
 
 
 
Table 2b: dem_gov

{p 0 7}{space 1}{text:( 1)}{space 1} {res}instrument = 0{p_end}

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}     dem_gov{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}(1) {c |}{col 14}{res}{space 2} -.040635{col 26}{space 2}  .041706{col 37}{space 1}   -0.97{col 46}{space 3}0.331{col 54}{space 4} -.122767{col 67}{space 3} .0414971
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

added scalar:
              e(vmean) =  {res}.89358166
 
 
 
Table 2b: dem_support

{p 0 7}{space 1}{text:( 1)}{space 1} instrument = 0{p_end}

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1} dem_support{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}(1) {c |}{col 14}{res}{space 2} .0684996{col 26}{space 2} .0286725{col 37}{space 1}    2.39{col 46}{space 3}0.018{col 54}{space 4} .0120344{col 67}{space 3} .1249647
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

added scalar:
              e(vmean) =  {res}1.1910698
 
 
 
Table 2b: dem_checks_on_pres

{p 0 7}{space 1}{text:( 1)}{space 1} instrument = 0{p_end}

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}dem_checks~s{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}(1) {c |}{col 14}{res}{space 2} .0867817{col 26}{space 2} .0370533{col 37}{space 1}    2.34{col 46}{space 3}0.020{col 54}{space 4} .0138123{col 67}{space 3} .1597511
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

added scalar:
              e(vmean) =  {res}1.185741
 
 
 
Table 2b: dem_institutions

{p 0 7}{space 1}{text:( 1)}{space 1} instrument = 0{p_end}

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}dem_instit~s{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}(1) {c |}{col 14}{res}{space 2} .0472537{col 26}{space 2} .0316007{col 37}{space 1}    1.50{col 46}{space 3}0.136{col 54}{space 4} -.014978{col 67}{space 3} .1094854
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

added scalar:
              e(vmean) =  {res}1.1995561
{txt}
{com}. 
. foreach var of varlist `democracy' {c -(}
{txt}  2{com}.         quietly eststo: reg `var' instrument c.instrument#c.W i.birthyear_control##c.W i.locale_gender##c.W c.post1##c.W c.treat2_10_inc##c.W $controls2 if birthyear_control >= 1970 & birthyear_control <= 1997, cluster(locale_3_control)
{txt}  3{com}.                 
.                 display " "
{txt}  4{com}.                 display " "
{txt}  5{com}.                 display " "
{txt}  6{com}.                 display "Table 3b: `var'"
{txt}  7{com}.                 
.                 noisily: lincom instrument
{txt}  8{com}.                 noisily: lincom c.instrument#c.W
{txt}  9{com}.                 
.                 quietly: summ `var' if e(sample)
{txt} 10{com}.                 estadd scalar vmean = r(mean)
{txt} 11{com}. {c )-}       
 
 
 
Table 3b: dem_gov

{p 0 7}{space 1}{text:( 1)}{space 1} {res}instrument = 0{p_end}

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}     dem_gov{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}(1) {c |}{col 14}{res}{space 2} .0402658{col 26}{space 2} .0452244{col 37}{space 1}    0.89{col 46}{space 3}0.374{col 54}{space 4}-.0487952{col 67}{space 3} .1293267
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{p 0 7}{space 1}{text:( 1)}{space 1} {res}c.instrument#c.W = 0{p_end}

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}     dem_gov{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}(1) {c |}{col 14}{res}{space 2} -.249305{col 26}{space 2} .1173194{col 37}{space 1}   -2.13{col 46}{space 3}0.035{col 54}{space 4}-.4803434{col 67}{space 3}-.0182667
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

added scalar:
              e(vmean) =  {res}.90564998
 
 
 
Table 3b: dem_support

{p 0 7}{space 1}{text:( 1)}{space 1} instrument = 0{p_end}

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1} dem_support{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}(1) {c |}{col 14}{res}{space 2}  .032785{col 26}{space 2} .0318971{col 37}{space 1}    1.03{col 46}{space 3}0.305{col 54}{space 4}-.0300302{col 67}{space 3} .0956003
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{p 0 7}{space 1}{text:( 1)}{space 1} {res}c.instrument#c.W = 0{p_end}

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1} dem_support{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}(1) {c |}{col 14}{res}{space 2} .2399801{col 26}{space 2} .0995264{col 37}{space 1}    2.41{col 46}{space 3}0.017{col 54}{space 4} .0439818{col 67}{space 3} .4359785
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

added scalar:
              e(vmean) =  {res}1.180703
 
 
 
Table 3b: dem_checks_on_pres

{p 0 7}{space 1}{text:( 1)}{space 1} instrument = 0{p_end}

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}dem_checks~s{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}(1) {c |}{col 14}{res}{space 2} .0522185{col 26}{space 2} .0427665{col 37}{space 1}    1.22{col 46}{space 3}0.223{col 54}{space 4}-.0320021{col 67}{space 3} .1364391
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{p 0 7}{space 1}{text:( 1)}{space 1} {res}c.instrument#c.W = 0{p_end}

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}dem_checks~s{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}(1) {c |}{col 14}{res}{space 2} .2497117{col 26}{space 2} .1155399{col 37}{space 1}    2.16{col 46}{space 3}0.032{col 54}{space 4} .0221778{col 67}{space 3} .4772456
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

added scalar:
              e(vmean) =  {res}1.1715792
 
 
 
Table 3b: dem_institutions

{p 0 7}{space 1}{text:( 1)}{space 1} instrument = 0{p_end}

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}dem_instit~s{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}(1) {c |}{col 14}{res}{space 2} .0128273{col 26}{space 2} .0372669{col 37}{space 1}    0.34{col 46}{space 3}0.731{col 54}{space 4}-.0605628{col 67}{space 3} .0862175
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{p 0 7}{space 1}{text:( 1)}{space 1} {res}c.instrument#c.W = 0{p_end}

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}dem_instit~s{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}(1) {c |}{col 14}{res}{space 2} .2353442{col 26}{space 2}  .103297{col 37}{space 1}    2.28{col 46}{space 3}0.024{col 54}{space 4} .0319203{col 67}{space 3}  .438768
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

added scalar:
              e(vmean) =  {res}1.1920717
{txt}
{com}. 
. local numbers "& (1) & (2) & (3) & (4) \\"
{txt}
{com}. local dem1 "\textbf{c -(}A: Support for Democracy{c )-} & \multicolumn{c -(}1{c )-}{c -(}c{c )-}{c -(}Democratic{c )-} &  \multicolumn{c -(}1{c )-}{c -(}c{c )-}{c -(}Dem support{c )-}&  \multicolumn{c -(}1{c )-}{c -(}c{c )-}{c -(}Checks on{c )-} &  \multicolumn{c -(}1{c )-}{c -(}c{c )-}{c -(}Dem institutions{c )-} \\ "
{txt}
{com}. local dem2 "\midrule \\ \textbf{c -(}B: Democracy Threatened{c )-} & \multicolumn{c -(}1{c )-}{c -(}c{c )-}{c -(}Democratic{c )-} &  \multicolumn{c -(}1{c )-}{c -(}c{c )-}{c -(}Dem support{c )-}&  \multicolumn{c -(}1{c )-}{c -(}c{c )-}{c -(}Checks on{c )-} &  \multicolumn{c -(}1{c )-}{c -(}c{c )-}{c -(}Dem institutions{c )-} \\"
{txt}
{com}. local line2 "& \multicolumn{c -(}1{c )-}{c -(}c{c )-}{c -(}quality index{c )-} &  \multicolumn{c -(}1{c )-}{c -(}c{c )-}{c -(}index{c )-}&  \multicolumn{c -(}1{c )-}{c -(}c{c )-}{c -(}president{c )-} &  \multicolumn{c -(}1{c )-}{c -(}c{c )-}{c -(}index{c )-} \\  \midrule"
{txt}
{com}. local gap ""
{txt}
{com}. 
. esttab est1 est2 est3 est4 using "tables/democracy.tex", replace b(3) se(3) ar(3) ///
> stats(N vmean, fmt(0 3 3 "") labels(`"Observations"' `"DV Mean"')) nonumber posthead("`numbers'" "`dem1'"  "`line2'") ///
> f label nomtitles nogaps booktabs noobs compress star(* 0.10 ** 0.05 *** 0.01) keep(instrument)
{res}{txt}(output written to {browse  `"tables/democracy.tex"'})

{com}. 
. esttab est5 est6 est7 est8 using "tables/democracy.tex", b(3) se(3) ar(3) ///
> stats(N vmean, fmt(0 3 3 "") labels(`"Observations"' `"DV Mean"')) ///
> nonumber posthead("`gap'" "`dem2'"  "`line2'") append ///
> f label nomtitles nogaps booktabs noobs compress star(* 0.10 ** 0.05 *** 0.01) keep(instrument c.instrument#c.W)
{res}{txt}(output written to {browse  `"tables/democracy.tex"'})

{com}. 
. 
. 
. 
. *******************************
. ***   Governance measures   ***
. *******************************
. 
. 
. local governance corruption corruption_president performance_index
{txt}
{com}. est clear
{res}{txt}
{com}. 
. 
. foreach var of varlist `governance' {c -(}
{txt}  2{com}.         display " "
{txt}  3{com}.         display " "
{txt}  4{com}.         display " "
{txt}  5{com}.         display "Table 4: `var'"
{txt}  6{com}.         
.         quietly eststo: areg `var' instrument $controls if birthyear_control >= 1970 & birthyear_control <= 1997, absorb(locale_gender) cluster(locale_3_control)
{txt}  7{com}.         
.         noisily: lincom instrument
{txt}  8{com}.         quietly: summ `var'
{txt}  9{com}.         estadd scalar vmean = r(mean)
{txt} 10{com}. {c )-}
 
 
 
Table 4: corruption

{p 0 7}{space 1}{text:( 1)}{space 1} {res}instrument = 0{p_end}

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}  corruption{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}(1) {c |}{col 14}{res}{space 2} .0600764{col 26}{space 2} .0678237{col 37}{space 1}    0.89{col 46}{space 3}0.377{col 54}{space 4} -.073492{col 67}{space 3} .1936448
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

added scalar:
              e(vmean) =  {res}1.1864472
 
 
 
Table 4: corruption_president

{p 0 7}{space 1}{text:( 1)}{space 1} instrument = 0{p_end}

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}corruption~t{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}(1) {c |}{col 14}{res}{space 2} .0962179{col 26}{space 2} .0890142{col 37}{space 1}    1.08{col 46}{space 3}0.281{col 54}{space 4}-.0790888{col 67}{space 3} .2715245
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

added scalar:
              e(vmean) =  {res}1.1153582
 
 
 
Table 4: performance_index

{p 0 7}{space 1}{text:( 1)}{space 1} instrument = 0{p_end}

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}performanc~x{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}(1) {c |}{col 14}{res}{space 2}-.0528551{col 26}{space 2} .0501675{col 37}{space 1}   -1.05{col 46}{space 3}0.293{col 54}{space 4}-.1516504{col 67}{space 3} .0459403
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

added scalar:
              e(vmean) =  {res}1.2712743
{txt}
{com}. 
. foreach var of varlist `governance' {c -(}
{txt}  2{com}.         
.         display " "
{txt}  3{com}.         display " "
{txt}  4{com}.         display " "
{txt}  5{com}.         display "Table 4: `var'"
{txt}  6{com}.         
.         quietly eststo: reg `var' instrument c.instrument#c.W i.birthyear_control##c.W i.locale_gender##c.W c.post1##c.W c.treat2_10_inc##c.W $controls2 if birthyear_control >= 1970 & birthyear_control <= 1997, cluster(locale_3_control)
{txt}  7{com}.         
.         noisily: lincom instrument 
{txt}  8{com}.         noisily: lincom c.instrument#c.W
{txt}  9{com}.         
.         quietly: summ `var' if e(sample)
{txt} 10{com}.         estadd scalar vmean = r(mean)
{txt} 11{com}.                 
. {c )-}       
 
 
 
Table 4: corruption

{p 0 7}{space 1}{text:( 1)}{space 1} {res}instrument = 0{p_end}

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}  corruption{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}(1) {c |}{col 14}{res}{space 2} .0267569{col 26}{space 2} .0804738{col 37}{space 1}    0.33{col 46}{space 3}0.740{col 54}{space 4}-.1317239{col 67}{space 3} .1852378
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{p 0 7}{space 1}{text:( 1)}{space 1} {res}c.instrument#c.W = 0{p_end}

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}  corruption{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}(1) {c |}{col 14}{res}{space 2} .3976673{col 26}{space 2} .1978504{col 37}{space 1}    2.01{col 46}{space 3}0.045{col 54}{space 4} .0080311{col 67}{space 3} .7873035
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

added scalar:
              e(vmean) =  {res}1.1944864
 
 
 
Table 4: corruption_president

{p 0 7}{space 1}{text:( 1)}{space 1} instrument = 0{p_end}

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}corruption~t{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}(1) {c |}{col 14}{res}{space 2} .1046502{col 26}{space 2} .0987714{col 37}{space 1}    1.06{col 46}{space 3}0.290{col 54}{space 4}-.0898725{col 67}{space 3} .2991728
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{p 0 7}{space 1}{text:( 1)}{space 1} {res}c.instrument#c.W = 0{p_end}

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}corruption~t{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}(1) {c |}{col 14}{res}{space 2} .5202841{col 26}{space 2} .2423982{col 37}{space 1}    2.15{col 46}{space 3}0.033{col 54}{space 4} .0428997{col 67}{space 3} .9976686
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

added scalar:
              e(vmean) =  {res}1.1300448
 
 
 
Table 4: performance_index

{p 0 7}{space 1}{text:( 1)}{space 1} instrument = 0{p_end}

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}performanc~x{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}(1) {c |}{col 14}{res}{space 2}-.0357339{col 26}{space 2} .0592483{col 37}{space 1}   -0.60{col 46}{space 3}0.547{col 54}{space 4}-.1524121{col 67}{space 3} .0809444
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{p 0 7}{space 1}{text:( 1)}{space 1} {res}c.instrument#c.W = 0{p_end}

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}performanc~x{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}(1) {c |}{col 14}{res}{space 2}-.0846962{col 26}{space 2} .1274432{col 37}{space 1}   -0.66{col 46}{space 3}0.507{col 54}{space 4}-.3356714{col 67}{space 3}  .166279
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

added scalar:
              e(vmean) =  {res}1.2829077
{txt}
{com}. 
. local numbers "& (1) & (2) & (3) & (4) & (5) & (6) \\"
{txt}
{com}. local gov1 " & \multicolumn{c -(}1{c )-}{c -(}c{c )-}{c -(}Corruption{c )-} & \multicolumn{c -(}1{c )-}{c -(}c{c )-}{c -(}Pres. Corrupt{c )-} &  \multicolumn{c -(}1{c )-}{c -(}c{c )-}{c -(}Performance{c )-} & \multicolumn{c -(}1{c )-}{c -(}c{c )-}{c -(}Corruption{c )-} &  \multicolumn{c -(}1{c )-}{c -(}c{c )-}{c -(}Pres. Corrupt{c )-} &  \multicolumn{c -(}1{c )-}{c -(}c{c )-}{c -(}Performance{c )-} \\ \midrule"
{txt}
{com}. local gap ""
{txt}
{com}. 
. esttab est1 est2 est3 est4 est5 est6 using "tables/governance.tex", replace b(3) se(3) ar(3) ///
> stats(N vmean, fmt(0 3 3 "") labels(`"Observations"' `"DV Mean"')) nonumber posthead("`numbers'" "`gov1'") ///
> f label nomtitles nogaps booktabs noobs compress star(* 0.10 ** 0.05 *** 0.01) keep(instrument c.instrument#c.W)
{res}{txt}(output written to {browse  `"tables/governance.tex"'})

{com}. 
. 
. 
{txt}end of do-file

{com}. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}/Users/shelley/Dropbox/Projects/Senegal/Senegal Nigeria Education and Leaders/Senegal Replication Files/do files/0_main tables.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res} 6 Jul 2023, 11:59:29
{txt}{.-}
{smcl}
{txt}{sf}{ul off}